package cn.com.dycc.party_work.apply.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.com.dycc.party_work.apply.entity.Apply;
import cn.com.dycc.party_work.apply.entity.UserAndApply;
import cn.com.dycc.party_work.apply.param.ApplyParam;
import cn.com.dycc.party_work.apply.param.FindApplyParam;

/**
 * 
 * Description: 入党申请dao层
 * Author: Liket
 * Version: 1.0
 * Create Date Time: 2018年6月20日 上午10:01:45.
 * Update Date Time: 
 * @see
 */
@Repository("applyDao")
public interface ApplyDao {
	int addApply(ApplyParam apply);
	int deleteApply(
			@Param("apply_id")String apply_id,
			@Param("org_id")String org_id);
	int deleteAllApply(String apply_ids[]);
	int updateApply(Apply apply);
	//查询单条申请
	Apply findApply(
			@Param("apply_id")String apply_id,
			@Param("org_id")String org_id);
	
	//查询单条申请与用户信息
	UserAndApply findApplyById(
			@Param("apply_id")String apply_id,
			@Param("org_id")String org_id);
	//统计
	String findApplyCount(FindApplyParam param);
	//查询所有申请与用户信息
	List<UserAndApply> findAllApply(FindApplyParam param);
	
	//List<Apply> findAllApply();
	//List<Apply> findApplyBy();
	
}
